amplify-studio icon indicating copy to clipboard operation
amplify-studio copied to clipboard

File Browser sorts by size by first number like a String, not by size of double.

Open djsjr opened this issue 3 years ago • 2 comments

Before opening, please confirm:

App Id

dt7m032vxqs1v

Region

us-east-1

Environment name

No response

Amplify CLI Version

7.6.5

If applicable, what version of Node.js are you using?

No response

What operating system are you using?

Mac

Browser type?

Safari

Describe the bug

Files stored in s3 are not sorted by size correctly, as a double would be (smallest to largest). Instead they are sorted by alpha-numerical order like Strings would be.

Incorrect result for smallest first: Screen Shot 2022-01-14 at 2 19 03 AM

Incorrect result for largest first: Screen Shot 2022-01-14 at 2 19 15 AM

Expected behavior

Sort as doubles smallest to largest (or vice versa).

Reproduction steps

Click the "Size" Column label.

Additional information

No response

djsjr avatar Jan 14 '22 07:01 djsjr

I've created a backlog item tracking this internally pending prioritization, can confirm reproduction.

cslogan-red avatar Jan 14 '22 19:01 cslogan-red

Tested on latest version of studio, this behaviour still occurs.

image

ykethan avatar Nov 29 '22 16:11 ykethan