libretime/legacy/application/models
dakriy 8c26505622
feat(legacy): order by filename when lptime is null (#3069)
### Description

It is good to have a deterministic order when doing explicit file
sorting. This sorts by filename when last played time is null. I would
expect filename to be the next sort after last played time in case of a
tie, and was surprised to find it was not explicit. It should not break
any existing use cases.

**This is a new feature**:

Kind of?

**I have updated the documentation to reflect these changes**:

I did not update any documentation as this way seems like the logical
expected way to do the sort.

### Testing Notes

**What I did:**

I loaded up some tracks into a local libretime instance, let some of
them play, and tested that all the old sorts worked as before as well as
tracks getting sorted by filepath in case of a last played time
2024-08-24 07:47:25 +01:00
..
airtime fix(deps): update dependency friendsofphp/php-cs-fixer to <3.53.1 (#2972) 2024-04-13 14:36:31 +02:00
formatters style(legacy): fix code format with php-cs-fixer (#1674) 2022-03-14 12:15:04 +02:00
tests feat: build schedule events exclusively in playout (#2946) 2024-04-27 20:09:16 +02:00
Auth.php feat(legacy): move session store to database (#2523) 2023-05-30 22:25:50 +02:00
Block.php feat(legacy): order by filename when lptime is null (#3069) 2024-08-24 07:47:25 +01:00
Criteria.php feat(legacy): add filename block criteria (#3015) 2024-06-22 11:51:59 +02:00
Dashboard.php style(legacy): format files (#1946) 2022-07-07 20:01:15 +02:00
Datatables.php fix(legacy): advanced search by track type id 2023-01-08 22:40:48 +02:00
Email.php Format code using php-cs-fixer 2021-10-12 11:07:56 +02:00
FreeIpa.php Format code using php-cs-fixer 2021-10-12 11:07:56 +02:00
Library.php fix: use constrained foreign key for files track_type 2022-07-07 21:07:41 +02:00
LibraryEditable.php Format code using php-cs-fixer 2021-10-12 11:07:56 +02:00
ListenerStat.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.26.1 (main) (#2677) 2023-09-08 15:45:24 +02:00
LiveLog.php style(legacy): format files (#1946) 2022-07-07 20:01:15 +02:00
Locale.php feat(legacy): add Ukrainian language 2022-07-04 20:00:51 +02:00
LoginAttempts.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.26.1 (main) (#2677) 2023-09-08 15:45:24 +02:00
Playlist.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.27.1 (main) (#2714) 2023-09-17 17:14:59 +02:00
Preference.php fix(legacy): replay_gain_modifier should be a system preference (#2943) 2024-02-08 19:48:49 +01:00
RabbitMq.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.46.1 (main) (#2868) 2024-01-07 13:59:02 +01:00
Schedule.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.27.1 (main) (#2714) 2023-09-17 17:14:59 +02:00
Scheduler.php fix: playlist allocates inaccurate time to smartblocks (#3026) 2024-06-05 17:01:57 +01:00
ServiceRegister.php fix(legacy): update or remove broken links 2022-09-21 08:28:43 +02:00
Show.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.23.1 (stable) (#2656) 2023-08-15 18:28:18 +02:00
ShowBuilder.php style(legacy): format files (#1946) 2022-07-07 20:01:15 +02:00
ShowInstance.php feat(legacy): trim overbooked shows after autoloading a playlist (#2897) 2024-02-02 20:17:23 +01:00
StoredFile.php fix(legacy): allow deleting file with api token (#2995) 2024-05-05 22:26:27 +02:00
StreamSetting.php feat: add mobile devices stream config field (#2744) 2023-10-14 08:13:04 +01:00
Subjects.php chore: use https links (#2075) 2022-08-25 16:25:54 +02:00
Systemstatus.php chore(legacy): format code 2022-09-12 14:15:50 +02:00
Tracktype.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.27.1 (main) (#2714) 2023-09-17 17:14:59 +02:00
User.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.43.2 (main) (#2848) 2023-12-29 15:28:57 +01:00
Webstream.php fix(deps): update dependency friendsofphp/php-cs-fixer to <3.27.1 (main) (#2714) 2023-09-17 17:14:59 +02:00