Skip to content

feat: Sort Order for Series categories#1067

Merged
sparkison merged 2 commits intom3ue:devfrom
Warbs816:feat/series-category-sort-order
Apr 25, 2026
Merged

feat: Sort Order for Series categories#1067
sparkison merged 2 commits intom3ue:devfrom
Warbs816:feat/series-category-sort-order

Conversation

@Warbs816
Copy link
Copy Markdown
Contributor

@Warbs816 Warbs816 commented Apr 24, 2026

Summary

Closes #1023.

Brings Series categories to parity with Live and VOD groups for sort ordering:

  • Editor UI — adds the Sort Order column (inline-editable) and form field to the Series → Categories resource, mirroring the existing GroupResource / VodGroupResource layout. Drag-to-reorder already worked; this just exposes the value for direct editing.
  • Xtream API outputget_series_categories on regular playlists / aliases now applies sortBy('sort_order'), so clients like TiVimate honor the custom order. Live and VOD already did this; series was the lone exception.

The categories.sort_order column itself already existed (default 9999), so no migration is needed. Existing auto_sort import behavior is untouched — it only ever applied to Live/VOD groups, and that hasn't changed.

Notes

  • The tooltip on the Series category column reads Category sort order (no auto-sort warning), since auto_sort doesn't currently overwrite series categories during import.
  • CustomPlaylist behavior is unchanged — that branch already sorted correctly.

Test plan

  • Open Series → Categories: confirm new Sort Order column appears, edits persist, drag-reorder still works
  • Edit a category: confirm Sort Order field is on the form and saves
  • Hit player_api.php?action=get_series_categories on a regular playlist with reordered categories: confirm response order matches sort_order ASC
  • Verify TiVimate (or another Xtream client) reflects the new category order

Mirrors the Live and VOD Group resources so users can manually order
Series categories. Series Categories already stored sort_order and the
XtreamApiController already sorted output by it; this just exposes the
field for editing.

Closes m3ue#1023
Live and VOD already order by sort_order on the regular (non-custom)
playlist branch. The series branch plucked categories in insertion
order, so manual reordering had no effect on clients like TiVimate.
Aligns behavior across Live, VOD, and Series.
@Warbs816 Warbs816 marked this pull request as ready for review April 24, 2026 22:23
@sparkison sparkison merged commit fa2bfec into m3ue:dev Apr 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants