'sort by bpm' in library doesn't

Bug #192809 reported by Daniel Barlow
2
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
ironstorm

Bug Description

In the Ubuntu binary packages of 1.6.0beta2, clicking on the 'BPM' column title seems to be sorting the tracks alphabetically not numerically. Or if that's not what it's doing, it's doing something non-obvious

95.3, 84.5, 82.7, 82.7, 79.3, 71.7, 312.2, 129.6, 127.2

I'll see if I can attach a screenshot

Revision history for this message
Daniel Barlow (dan-telent) wrote :

312.2 is a typo for 132.2, if you didn't guess

Revision history for this message
Albert Santoni (gamegod) wrote :

Thanks for the bug report Dan. I looked at trying to fix this a few weeks ago, and I thought it'd be a slam-dunk, but I couldn't find the place where the logic was incorrect. It looks like it might be lexicographically comparing the BPMs as strings as opposed to just comparing the floats...

Thanks,
Albert

Albert Santoni (gamegod)
Changed in mixxx:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
ironstorm (ironstorm-gmail) wrote :

fix is in proxymodel.cpp - svn revision 1862

sort now behaves as follows (where 0.0 is no valid BPM detection data):
89.9, 123.0, 127.4, 0.0
127.4, 123.0, 89.9, 0.0

Changed in mixxx:
assignee: nobody → ironstorm-gmail
status: Confirmed → Fix Committed
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issue/4923

lock status: Metadata changes locked and limited to project staff
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/4923

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.