tidekeeper
tidekeeper copied to clipboard
[BUG]: Sorting search results by duration is alphabetical instead of numeric
Which entry point?
tidekeeper
Tidekeeper version or commit
latest main
Platform
Linux mint
Steps to reproduce
### Steps to reproduce
1. Search for something that returns items with a mix of short and long durations.
2. Sort the results by duration, ascending.
3. Look at the order of the returned items.
### Expected behaviour
Items are ordered by their actual length. For the example below, ascending order should be:
2:17 (137 s)
1:00:24 (3624 s)
2:21:31 (8491 s)
### Actual behaviour
Items are ordered by the text of the duration label, character by character:
1:00:24 (3624 s)
2:17 (137 s)
2:21:31 (8491 s)
Descending order is the exact reverse of the above, so it is wrong in the same way.
Full output / traceback
N/A
Anything else?
No response
Closed as fixed in latest build. Thanks for feedback.