Fix sort for pages greater than 9

This commit is contained in:
Maksim Karasev 2021-09-12 18:57:10 +03:00
parent 8c2abc2ed2
commit df2c585f92
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ function App(props: WithWidth) {
>
{typeof imagesData === 'object' && Object.keys(imagesData).length !== 0 ? (
<ImageGridListTile
images={[...new Set(Object.keys(imagesData).sort().reduce(
images={[...new Set(Object.keys(imagesData).sort((a:any, b:any) => a - b).reduce(
(r, k) => (r.concat(imagesData[k])),
[],
))]}