fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
317 stars 17 forks source link

Sort by multiple attributes #4

Open wedsa5 opened 6 years ago

wedsa5 commented 6 years ago

I'd like to be able to have a more complex sort option so that it can sort by multiple attributes.

For example: qbt torrent list -s SavePath,Size Would sort all torrents first by their save path, then within the save path group, it would sort them by size.

example data sorted by name:

torrent1 - 10MB - /media/torrents/files/ torrent2 - 5MB - /media/torrents/files/ torrent3 - 3MB - /media/torrents/otherfiles/ torrent4 - 1MB - /media/torrents/otherfiles/ torrent5 - 100MB - /media/torrents/bigfiles/

after the sort in the example would become:

torrent5 - 100MB - /media/torrents/bigfiles/ torrent2 - 5MB - /media/torrents/files/ torrent1 - 10MB - /media/torrents/files/ torrent4 - 1MB - /media/torrents/otherfiles/ torrent3 - 3MB - /media/torrents/otherfiles/