qoomon / aws-s3-bucket-browser

Single page application to browse AWS S3 bucket content
https://qoomon.github.io/aws-s3-bucket-browser/index.html?bucket=https://s3.amazonaws.com/spacenet-dataset#
MIT License
246 stars 85 forks source link

Feature request - specify default ordering #22

Closed antaenc closed 2 years ago

antaenc commented 2 years ago

In the config section ability to choose which column to order on and ordering direction so this is presented upon loading index.html without having to click on the column to obtain desired ordering.

qoomon commented 2 years ago

Seams reasonable

qoomon commented 2 years ago

FYI the S3 Bucket API does not provide any feature to sort while querying. That means you can only sort current page of S3 items.

qoomon commented 2 years ago

done. there is a new option config.defaultOrder e.g. config.defaultOrder='name-asc'

antaenc commented 2 years ago

Thank you!