Fix reversed logic in playlist sorting