tidekeeper icon indicating copy to clipboard operation
tidekeeper copied to clipboard

[BUG]: Sorting search results by duration is alphabetical instead of numeric

Open FloWirus opened this issue 2 months ago • 2 comments

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

FloWirus avatar Sep 14 '26 10:09 FloWirus

BRA-18

linear-code[bot] avatar Sep 14 '26 10:09 linear-code[bot]

Closed as fixed in latest build. Thanks for feedback.

OpenNerdz avatar Sep 14 '26 17:09 OpenNerdz