Fix sort for pages greater than 9
This commit is contained in:
parent
8c2abc2ed2
commit
df2c585f92
|
@ -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])),
|
||||
[],
|
||||
))]}
|
||||
|
|
Loading…
Reference in New Issue