Due to original Sort like Natural Sort or Lexical Sort doesn't fit me well
especially for those files like Pixix/Fanbox/Fantia set, because they usually have filename like (series_number)_p(index_number) which are consisted of more than two numbers.
And it's needed to show the newest series at first in the updating gallery, which means Serie goes Max first and then every Index in Series goes Min first.
Such as 002_001.gif, 001_000.png, 001_001.jpg, 001_002.jpg. Filename Format: .*Series.*Index.*.jpg
So I write this Javascript (run in Tampermonkey of Chrome/Firefox). So when get in to page like (e-hentai.org/upld/managegallery?ulgid=) or (https://upld.e-hentai.org/managegallery?ulgid=), you will find a small button named 'Smart Sort' which clicked will send a post to ehentai server with new order(Max Serie & Min Index goes first).
And then Reflash the Page, you will get the smart order.
Project here: [
github.com]
https://github.com/Grinch27/EH-Uploader-ToolkitJavascript(early release version): [
github.com]
https://github.com/Grinch27/EH-Uploader-Too...Smart%20Sort.jsWelcome for any Issues, I'm busy but I will check it.
Hope this will help for those uploaders struggle with sorting img.
(IMG:[
invalid]
style_emoticons/default/biggrin.gif)
Use Sample, Before and After:
====================
Raw upload, Series and Index, Min goes first:
(IMG:[
i.imgur.com]
https://i.imgur.com/B9ODv2I.png)
====================
After Sort by Series and Index, Series Max and Index Min goes first:
(IMG:[
i.imgur.com]
https://i.imgur.com/jySWj6m.png)
This post has been edited by Grinch27: May 3 2022, 14:30