• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Data display, JavaScript
    • None

          [MBS-157] Allow sorting tables

          jesus2099 added a comment -

          Lee Carré lotheric,
          It cannot work client-side, because of (server-side) pagination.

          jesus2099 added a comment - Lee Carré lotheric , It cannot work client-side, because of (server-side) pagination.

          Lotheric added a comment -

          If sorting can be done client side, please consider fixing https://tickets.metabrainz.org/browse/MBS-11748

          Lotheric added a comment - If sorting can be done client side, please consider fixing https://tickets.metabrainz.org/browse/MBS-11748

          derat added a comment -

          Lee Carré, I wasn't familiar with TableTools2, but from https://discourse.mozilla.org/t/what-happened-to-tabletools2-can-we-get-it-back/53226, it sounds like it hasn't worked for ~5 years – is there a newer supported version? I'd be worried about the potential for breaking a page's JavaScript when reordering table rows (what if there are bound functions using the original indexes?).

          A client-side approach also seems like it wouldn't work with paginated lists, e.g. an artist page with many releases.

          derat added a comment - Lee Carré , I wasn't familiar with TableTools2, but from https://discourse.mozilla.org/t/what-happened-to-tabletools2-can-we-get-it-back/53226 , it sounds like it hasn't worked for ~5 years – is there a newer supported version? I'd be worried about the potential for breaking a page's JavaScript when reordering table rows (what if there are bound functions using the original indexes?). A client-side approach also seems like it wouldn't work with paginated lists, e.g. an artist page with many releases.

          Lee Carré added a comment -

          This is likely better implemented in User Agents (browsers). Such as via the TableTools2 add-on for Mozilla.

          Lee Carré added a comment - This is likely better implemented in User Agents (browsers). Such as via the TableTools2 add-on for Mozilla.

          jesus2099 added a comment -

          ebz777, I have added MBS-13699 for collection rating sort.

          jesus2099 added a comment - ebz777 , I have added MBS-13699 for collection rating sort.

          Aerozol added a comment -

          So we have what comes across as a bit of an ad-hoc sorting method on the user tag table (top left): https://musicbrainz.org/user/aerozol/tags

          But nowhere else? A standard really needs to looked into before everything gets coded twice.

          Aerozol added a comment - So we have what comes across as a bit of an ad-hoc sorting method on the user tag table (top left): https://musicbrainz.org/user/aerozol/tags But nowhere else? A standard really needs to looked into before everything gets coded twice.

          ebz777 added a comment - - edited

          Not strictly related to this ticket but Ian McEwen was mentionning in 2013 that Collections are now sortable by all fields. I wanted to mention that at this date Collections cannot yet be sorted by Rating though.

          ebz777 added a comment - - edited Not strictly related to this ticket but Ian McEwen was mentionning in 2013 that Collections are now sortable by all fields. I wanted to mention that at this date Collections cannot yet be sorted by Rating though.

          Ian McEwen added a comment -

          I'm not actively working on this, so I'm unassigning it. I think this may need to happen post-NES, to prevent some serious duplication of work. I may, however, take it on in musicbrainz-data-service, which is where the duplication would otherwise be.

          Ian McEwen added a comment - I'm not actively working on this, so I'm unassigning it. I think this may need to happen post-NES, to prevent some serious duplication of work. I may, however, take it on in musicbrainz-data-service, which is where the duplication would otherwise be.

          Ian McEwen added a comment -

          In-progress work on this ticket is available on http://ianmcorvidae.mbsandbox.org/ – at the time of this writing, release lists for artists and labels (with the exception of Various Artists) are sortable.

          Ian McEwen added a comment - In-progress work on this ticket is available on http://ianmcorvidae.mbsandbox.org/ – at the time of this writing, release lists for artists and labels (with the exception of Various Artists) are sortable.

          Ian McEwen added a comment -

          Collections are now sortable by all fields. Obviously not strictly related to this ticket, but since it was mentioned in the thread I thought I'd mention

          Ian McEwen added a comment - Collections are now sortable by all fields. Obviously not strictly related to this ticket, but since it was mentioned in the thread I thought I'd mention

            Unassigned Unassigned
            nikki nikki
            Votes:
            39 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated:

                Version Package