Skip to content

Commit fc191f4

Browse files
authored
Merge pull request #996 from kagahd/issue988
fix #988 sort numerically
2 parents 648ac36 + ad46bb1 commit fc191f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/app/ui/gallery/blog/blog.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class BlogService {
5656
}];
5757
}
5858

59-
dates.sort();
59+
dates.sort((a, b) => a - b);
6060

6161
const splitterRgx = new RegExp(/^\s*<!--\s*@pg-date:?\s*\d{4}-\d{1,2}-\d{1,2}\s*-->/, 'gim');
6262
const dateRgx = new RegExp(/\d{4}-\d{1,2}-\d{1,2}/);

0 commit comments

Comments
 (0)