After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327042 - Play queue and static playlists are not sortable
Play queue and static playlists are not sortable
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: User Interface
0.9.7
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 336080 338125 372946 392524 529139 565565 581521 687048 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-15 07:34 UTC by Lee Aylward
Modified: 2018-05-24 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
start of a patch (1.76 KB, patch)
2006-11-12 06:58 UTC, James "Doc" Livingston
none Details | Review
Introduced per-playlist sorting with local/DAAP state storage (12.10 KB, patch)
2007-12-24 20:41 UTC, Jay L. T. Cornwall
reviewed Details | Review
(Revision 2) Introduced per-playlist sorting with local/DAAP state storage (11.07 KB, patch)
2007-12-30 17:35 UTC, Jay L. T. Cornwall
none Details | Review
(Revision 3) Introduced DAAP per-playlist sorting with state storage (11.22 KB, patch)
2008-01-13 13:31 UTC, Jay L. T. Cornwall
none Details | Review
(Revision 4) Introduced DAAP per-playlist sorting with state storage (10.47 KB, patch)
2008-01-13 23:45 UTC, Jay L. T. Cornwall
committed Details | Review
Playlist sorting for 0.12.1 (2.64 KB, patch)
2009-06-19 21:16 UTC, jgoerzen
needs-work Details | Review

Description Lee Aylward 2006-01-15 07:34:30 UTC
Clicking a column header such as "Artist" should resort the playlist by artist,
as it does in the Library. This is how iTunes behaves, and is particularly
usefull for mt-daapd's dynamic playlists.

Other information:
Comment 1 James "Doc" Livingston 2006-01-23 04:43:35 UTC
Now that we are using a filter model for static playlists, it would be fairly easy to copy the sorting stuff from automatic playlists into the static ones. We would probably want a "return to original order" control somewhere, since the user may either want to do that or not meant to have sorted the list.

What to do with local static playlists is also something we need to think about. Where to insert a track that has been dropped into a sorted playlist could be complicated (maybe we should just insert at the end).
Comment 2 Alex Lancaster 2006-03-26 17:02:33 UTC
*** Bug 336080 has been marked as a duplicate of this bug. ***
Comment 3 Alex Lancaster 2006-03-26 17:03:49 UTC
Retitling summary to make include static playlists (addressed by James in comment #1).
Comment 4 James "Doc" Livingston 2006-04-11 22:16:15 UTC
*** Bug 338125 has been marked as a duplicate of this bug. ***
Comment 5 Alex Lancaster 2006-11-09 20:13:00 UTC
*** Bug 372946 has been marked as a duplicate of this bug. ***
Comment 6 Alex Lancaster 2006-11-09 20:13:58 UTC
This also affects play queue.
Comment 7 Alex Lancaster 2006-11-09 20:17:26 UTC
(In reply to comment #1)

> What to do with local static playlists is also something we need to think
> about. Where to insert a track that has been dropped into a sorted playlist
> could be complicated (maybe we should just insert at the end).

Regarding this issue, I think that once the playlist has been sorted it should just "forget" that it has been sorted, and insert the track whereever the user drops it.  The user can then resort it later.   In other words it should sort it instantaneously, rather than persistently, because you might want to refine it after the search.   I think that other apps (like iTunes) do it this way, although I should check.

Comment 8 James "Doc" Livingston 2006-11-12 06:58:56 UTC
Created attachment 76420 [details] [review]
start of a patch

This trivial patch lets you sort non-local (e.g. DAAP) playlists.
Comment 9 Alex Lancaster 2006-11-13 10:18:23 UTC
(In reply to comment #8)

> This trivial patch lets you sort non-local (e.g. DAAP) playlists.

Works for me. 

Comment 10 Lee Aylward 2006-12-10 18:51:59 UTC
(In reply to comment #8)
> Created an attachment (id=76420) [edit]
> start of a patch
> 
> This trivial patch lets you sort non-local (e.g. DAAP) playlists.
> 

Works great for me. Thanks!
Comment 11 Sebastien Bacher 2006-12-20 17:46:43 UTC
Ubuntu bug about that: https://launchpad.net/products/rhythmbox/+bug/76449
Comment 12 Alex Lancaster 2007-01-04 06:10:35 UTC
*** Bug 392524 has been marked as a duplicate of this bug. ***
Comment 13 Andrew Conkling 2007-01-14 19:35:42 UTC
Should the play queue really be sortable? What would happen to the playing track (which is always the first one)?
Comment 14 Robert Šmol 2007-01-15 11:12:28 UTC
Hi,

I believe playing queue should be sortable. Not everybody is used to have albums in the Library. Many of my friends just like to throw a MP3 folder on the player (or they do not have iPod, but other mp3 device, which is accessible as USB mass storage and they copy music to it via folders) . Or in my case I have external HDD with mp3 which is not always connected. So to play music, I  start player, throw mp3, sort and then play it. And many times when I do drag and drop music is not sorted (likely due to mismatch in select order, file name or tag info). 

I believe sorting when playing should not affect playing song, or another mechanism for sorting can be implemented. For example select songs one is interested to sort and via right click contect menu 
Sort->By Name
    ->By Artist
or any other sortable option. But still general sorting by clicking on columns should work.

I can't tell my friends to change habits and this seems to be only serious bug they experience when using Rhythmbox when playing mp3's.
Comment 15 Jay L. T. Cornwall 2007-12-24 20:41:35 UTC
Created attachment 101556 [details] [review]
Introduced per-playlist sorting with local/DAAP state storage

This is a proof-of-concept patch to implement:

a) Sorting functionality for local and DAAP playlists.
b) Sorting state recollection for local and DAAP playlists.

Remote state recollection is done by guessing that the combination of IP address and playlist name will be persistent. This is correct for my local media server setup and, I believe, appropriate for roaming clients (but not roaming servers) too.

The state storage mechanism is unrefined. Currently state information is stored in per-playlist keys inside /apps/rhythmbox/state/sorting/ using an MD5 hash of a unique playlist name (IP + playlist name for DAAP, playlist name for local). This is probably an inappropriate use of GConf but I could not see a more elegant storage solution - I am open to ideas. Note that the performance impact will be negligible, however, as the total number of playlists a client will ever see is small.

Patch only tested loosely but working well in my setup.
Comment 16 Jay L. T. Cornwall 2007-12-24 20:48:08 UTC
Forgot to comment above: the build dependencies in Rhythmbox are not quite correct. Thus, after applying the above patch you should make clean and rebuild completely.

Also, the patch is diff'd against a patched Rhythmbox 0.11.2 codebase. If it's too fuzzy to resolve against HEAD just give me a shout.
Comment 17 Jonathan Matthew 2007-12-29 11:26:42 UTC
I don't really like the idea of using md5(playlist name), although it should work perfectly well.  I think it'd be better to escape any characters that don't work in gconf keys (probably the same as filenames).

Also, I think it's probably better to use the share name rather than the IP address, as the address is likely to change in your typical dhcp or zeroconf network.  You'll only see collisions if you access playlists with the same name on two different shares with the same name.

Enabling sorting for local static playlists is a bit risky if there's no way to return to the original (unsorted) order.  If we do, I'd rather see the sort order stored in playlists.xml as it is for automatic playlists.
Comment 18 Jay L. T. Cornwall 2007-12-30 17:35:22 UTC
Created attachment 101853 [details] [review]
(Revision 2) Introduced per-playlist sorting with local/DAAP state storage

OK, comments taken on board. This revision uses gconf_escape_string (didn't know that existed!) instead of MD5, the DAAP share name rather than IP and disables sorting for local playlists.
Comment 19 Aredridel 2008-01-12 07:29:45 UTC
Vote +1
Comment 20 James "Doc" Livingston 2008-01-12 21:49:48 UTC
I haven't had a chance to test it yet, but a few comments:

+	case PROP_SORTING_NAME:
+		source->priv->sorting_name = g_value_dup_string (value);

This should have a 'g_free (source->priv->sorting_name)' in there, so the string is freed if the sorting name changes. It should also be freed in the finalize method.


+		old_sorting_key = g_strdup (view->priv->sorting_key);
 		g_free (view->priv->sorting_key);

Duplicating and then freeing the string is somewhat pointless, and could be replaced with "old_sorting_key = view->priv->sorting_key".
Comment 21 Jay L. T. Cornwall 2008-01-13 13:31:05 UTC
Created attachment 102734 [details] [review]
(Revision 3) Introduced DAAP per-playlist sorting with state storage

You're right, that was a bit sloppy. I did a quick audit of the patch and caught two extra missed g_free's.
Comment 22 Lee Aylward 2008-01-13 21:57:48 UTC
I am unable to get this patch successfully applied to SVN. I tried to update the patch but it seems a number of things have been moved around or restructured since  11.2. Here are the specific chunks that failed:

Hunk #1 succeeded at 371 (offset 18 lines).
patching file ./shell/rb-playlist-manager.c
Hunk #1 succeeded at 937 (offset 18 lines).
patching file ./sources/rb-playlist-source.c
Hunk #1 FAILED at 92.
Hunk #2 FAILED at 115.
Hunk #3 FAILED at 126.
Hunk #4 FAILED at 182.
Hunk #5 FAILED at 233.
Hunk #6 FAILED at 250.
Hunk #7 succeeded at 436 with fuzz 2 (offset 55 lines).
Hunk #8 succeeded at 481 with fuzz 2 (offset 67 lines).
Hunk #9 FAILED at 959.
7 out of 9 hunks FAILED -- saving rejects to file ./sources/rb-playlist-source.c.rej
patching file ./sources/rb-static-playlist-source.c
Hunk #1 succeeded at 297 (offset 8 lines).
Hunk #2 succeeded at 341 (offset 8 lines).
patching file ./sources/rb-static-playlist-source.h
patching file ./widgets/rb-entry-view.c
Comment 23 Jay L. T. Cornwall 2008-01-13 23:45:13 UTC
Created attachment 102774 [details] [review]
(Revision 4) Introduced DAAP per-playlist sorting with state storage

A few things have changed around on HEAD; I work on 0.11.2. Try this one. I can't test it locally (HEAD dependencies are too old) but the differences were only spatial.
Comment 24 Lee Aylward 2008-01-14 04:07:50 UTC
Cool, thanks. Seems to be working great, but I'll keep testing for the next few days.
Comment 25 Mike Rooney 2008-02-24 17:00:25 UTC
What is the status of having this work in a release? Is there any version target? It is linked to the Ubuntu bug https://bugs.launchpad.net/rhythmbox/+bug/76449 and has been open for over a year so I am just trying to discern progress. From the recent comments and patches it seems like this is still active so that is great. Unfortunately I assume this bug will still be present in Ubuntu Hardy as that uses 0.11.4 which exhibits this bug?

Thanks for any input/insight. Is there anything I can do to help?
Comment 26 Jay L. T. Cornwall 2008-02-24 17:16:44 UTC
The patch I provided does not affect local smart playlists, only smart playlists shared over DAAP.

Extending functionality to local playlists is probably quite easy. However, the Rhythmbox version I was working on printed GLib CRITICAL errors to the terminal when I tested local smart playlists. Hence I omitted them from this patch. I don't really have the time to look into the reasons for this.
Comment 27 Jonathan Matthew 2008-04-21 00:33:57 UTC
*** Bug 529139 has been marked as a duplicate of this bug. ***
Comment 28 Jonathan Matthew 2008-04-27 14:07:52 UTC
This looks OK and seems to work properly, so I've committed it (with a few tiny cleanups).  Jay, I figure you already agreed to relicense your earlier contributions, so I'm assuming you're OK with relicensing these changes too.
Comment 29 Mike Rooney 2008-04-27 15:45:06 UTC
Hi Jonathan, glad to see some progress on this bug and that the latest patch was committed. Is my understanding correct though that it doesn't address this bug, since it only allows for sorting of DAAP playlists but doesn't do anything for static playlists, or the play queue for that matter?
Comment 30 Jay L. T. Cornwall 2008-04-27 16:24:21 UTC
Yes, the new license is fine, John.

This patch added the infrastructure to support persistent sortable playlists in any part of Rhythmbox. Only DAAP has been enabled so far. When I went to test integration with static playlists there were critical warnings from another part of Rhythmbox, so I held off making any changes at that point.

They've probably been fixed since, so, if there's interest, I can provide a second small patch to enable sorting of static and automatic playlists. The play queue can be sorted with a simpler method but I'm not sure if a UI policy has been decided for that yet.
Comment 31 Jonathan Matthew 2008-04-27 21:29:43 UTC
Automatic playlists are already sortable, unless they have a size/duration/song count limit set, in which case the sort order is part of the definition of the playlist.
Comment 32 Jay L. T. Cornwall 2008-05-04 13:36:19 UTC
OK, I've taken a look at extending this functionality to static playlists.

It should be as simple as tying updates to the "name" property on RBStaticPlaylistSource to "sorting-name" as well, i.e. intercept in GObjectClass::set_property and set the same string on "sorting-name". However, I can't see a way to do this in the GNOME object model - the "name" property is part of RBSource and there doesn't seem to be a way to receive notification of updates to this property in the static subclass.

If that's possible then the patch is just a couple of lines.
Comment 33 Jonathan Matthew 2008-12-26 22:07:33 UTC
*** Bug 565565 has been marked as a duplicate of this bug. ***
Comment 34 Karolis 2009-04-28 22:34:13 UTC
The latest patch (2008-01-13) doesn't work for me. Can somebody fix this? This problem is really annoying.
Comment 35 Jonathan Matthew 2009-05-05 23:22:20 UTC
*** Bug 581521 has been marked as a duplicate of this bug. ***
Comment 36 jgoerzen 2009-06-19 17:30:57 UTC
I'm confused on the status.  I'm seeing this problem when browsing playlists on iPod.

There was a patch committed on 2008-01-13, yet I still have this problem in 0.12.1.  Did that patch not address iPods, or is there a different problem?
Comment 37 jgoerzen 2009-06-19 17:32:11 UTC
There is also a patch against 0.11 here:

http://launchpadlibrarian.net/20866080/lp76449.debdiff
Comment 38 jgoerzen 2009-06-19 21:16:38 UTC
Created attachment 137033 [details] [review]
Playlist sorting for 0.12.1

This is the patch from https://bugs.launchpad.net/rhythmbox/+bug/76449 but reformatted in a way that you as upstream maintainers can easily apply to your tree.
Comment 39 Jonathan Matthew 2009-06-20 00:03:58 UTC
The patch that was committed was only for playlists on DAAP shares.

This patch only addresses the most superficial aspect (actually enabling sorting).  The more complicated bits are:
- Figure out how the sorted playlist order interacts with the original order.  How do you restore the original order?  Does sorting actually change the order of the playlist, or does it just change the view of the track list?  Is this different for local playlists than for playlists on ipods?
- Store the selected sort order in playlists.xml for local playlists and restore it when the playlist is loaded
Comment 40 jgoerzen 2009-06-20 00:30:46 UTC
It's not perfect, I know, and those all are good things to address.

But it's better than nothing, being a cosmetic fix at least.  It does everything I want from it, and I would hope it could be committed anyhow, as a good first step.
Comment 41 Jonathan Matthew 2009-06-22 05:54:35 UTC
I don't want to commit this because it makes it too easy for the user to inadvertantly destroy their own data.
Comment 42 jgoerzen 2009-06-22 13:57:52 UTC
I've been using it for a few days now, and haven't had any problem with it at all yet.

Comment 43 Ben Pearre 2009-08-29 15:34:25 UTC
In 0.12.4 I do not see playlist sorting (at least not in the obvious way--clicking on the table headers).  I assume it was never committed?

It seems to me that either instantaneous or persistent sort would be just fine; my own choice would be for persistent (at least for the static playlist) for the following reason:

I would have expected the table of tracks in the GUI to be a standard widget that has sorting built in.  I'm surprised that this appears not to be the case.  I don't have the first clue as to the internals of rhythmbox or indeed Gnome, or how such a standard component would break something (can anyone point out the obvious?), but I've seen this approach used in many tables in many applications...

This may be partially an artifact of the way in which I'm using playlists?  I feel that an explanation might help, since I'm claiming a need for a sortable entity and sortable playlists fill the need.  I have ~/music, under which I have directories for music that I tend to want to listen to in a session, eg. "tango", "white noise", "blues", "symphonies", "string ensembles", "Bach", etc (genres could work but require retagging of everything in my collection as I discover where I want it, and I've got too much music that falls into multiple and unknown genres).  Under xmms I could say "xmms music/tango", but rhythmbox imported everything so I can't do that.  So I use playlists to see just the stuff under tango, whence I can add it to the playqueue during a party.
Comment 44 Chris 2009-10-25 18:59:44 UTC
I'm going to preface this comment by saying I'm not saying the following to be rude. Just trying to light a fire behind a few behinds.

I stumbled across this bug report because I'm having the same problem. I was taken aback when I went to click on "Artist" and nothing happened. This is a feature that should already be implemented.

It's been three years since this bug report was opened and STILL hasn't been fixed.

My question is why, during the last three years, hasn't this been fixed and what is going to be done to fix it now?

And I mean now. Not a month from now. Or months from now. I mean now. This has been put off long enough.
Comment 45 Christophe Fergeau 2009-10-26 13:28:02 UTC
Hmm, end of the month is soon, sounds like you are the one signing the pay checks, glad to meet you just in time!
Comment 46 Christophe Fergeau 2009-10-26 13:29:14 UTC
In other words, people are hacking on rhythmbox in their free time on whatever feels the most important to them, if a bug seems important to you but isn't fixed, that's unfortunate, but noone can't really guarantee a timeline for a fix except if you get your hands dirty yourself (or if someone steps up to do it).
Comment 47 Jonathan Matthew 2009-10-26 21:14:51 UTC
(In reply to comment #44)
> I'm going to preface this comment by saying I'm not saying the following to be
> rude. Just trying to light a fire behind a few behinds.

You don't get to do that. Regardless of your intent, this behaviour is actually quite rude.
Comment 48 Ben Pearre 2009-10-27 00:21:28 UTC
Jonathan is correct--it is rude to point out development process failures to volunteers.

Does that mean that the failures aren't real?  Is everything rude also false?  Chris is correct in that the delay for fixing this simple problem is absurd, and given the ad-hoc partial solutions in this bug I'm guessing that the code wasn't very well thought out from the beginning.  Yes, it's rude to say so, and the correct solution is for Chris (or me, or whomever has a problem with it) to fix the structure of the code so that it's easier to maintain.  Or, if you're a developer, at least to realise that there is a problem with the codebase when trivial behaviour is difficult to implement in general.  Perhaps a new bug called "Rhythmbox's code isn't pretty"?

But what's really going on here?

Rhythmbox seems to be one of the more refined of the iTunes clones, but in Debian Sid I see (and have tried a bunch of) abraca, amarok, aqualung, ario, audacious, banshee, bluemindo, cynthiune, decibel, elisa, gbemol, gimmix, glurp, gmpc, gmusicbrowser, intone, irmp3, jajuk, jlgui, jokosher, juk, listen, lxmusic, minirok, moosic, muine, musiclibrarian, potamus, promoe, pympd, pytone, quodlibet, sonata, xfmpc, xmms2, in addition to various servers, command-line clients, indexing tools, etc.

Yes, Linux is strong because of the license that allows branches of most any component, but in the absence of good judgement the same freedom weakens us, and I think that the example of music players, while not unique, illustrates this brilliantly.

This is killing Linux on the desktop.  What can be done to fix it?  Could development teams swallow some pride and learn to work together?  What if all the developers of those 35 projects could agree on everything, or even just some things?

That is, Linux as a media player is a toy, top-heavy with undisciplined hackers who are churning out great beginnings but not following through, ignoring rude but valid criticism because they are volunteers; they do not have to respond to the rude jerks.  I found 35 different programs that all set out to do exactly the same thing IN A MAJOR DISTRIBUTION'S PACKAGE LIST, and that was from a quick scan.  Yes, hacking music software is fun, but if the object were to actually produce something solid, there might be better ways to go about it.

So if you don't like the way the Rhythmbox project is managed, fork off!  ;)

Just a thought.  Largely off-topic as well, but I don't know where this problem should be discussed, and since I bet y'all have some really good insights, this is probably as good a spot as any to open the furnace ;)
Comment 49 Bastien Nocera 2009-10-27 00:56:46 UTC
Ben, this isn't a forum, and has nothing to do with the bug. Vent your frustration on the list, or whereever else you please, but not in Bugzilla.

Consider this your first warning.
Comment 50 Gareth Pye 2012-07-22 22:56:45 UTC
Trying to progress this bug, it really has been open way to long.

If destroying user data is so important why is there a "Shuffle playlist" option available? I only used that because I assumed that sorting the play list was equally easy. But now I have a quiet large play list that I can't sort.

Should the "Shuffle Playlist" option be removed till their is a more robust method of tracking play list history and allowing undo (it'd need to be persistent across reboots, as I didn't discover I'd lost this data till days later)
Comment 51 Jonathan Matthew 2012-07-24 22:11:12 UTC
Maybe. I'm not sure how that counts as "progress[ing] this bug" though. Unless you do it yourself, there is not going to be a more robust method of tracking playlist history any time soon.
Comment 52 Gareth Pye 2012-07-24 22:42:59 UTC
I was hoping that acknowledgement that currently the app supports methods of trashing that same data that shot down the submitted patch might allow that patch (or a rework of it now that I'm guessing it wont apply cleanly to the current code base) to be merged. 

I know that it would go a long way to easing my recreation of the order data I have lost.

If that wont fly, what level of undo would be required? Just the ability to undo while Rhythm Box is still running? Or would some method of being able to track multiple orderings on disk for later use be required?
Comment 53 Jonathan Matthew 2012-11-07 21:06:35 UTC
*** Bug 687048 has been marked as a duplicate of this bug. ***
Comment 54 Balakrishnan B 2012-11-08 05:25:08 UTC
I have a suggestion regarding restoring the original order for a playlist. There is a first column in the playlist which looks like sequence number starting from one. In the smart playlists, nothing happens when clicked on this column. Can this be enhanced in ordinary playlists to restore order (or based on sequence number) when clicked on the fist column? Not sure if this idea was already discussed. Didn't go through all 53 comments.
Comment 55 radus 2012-11-08 18:47:36 UTC
I don't think it is possible to use the sequence number - I believe that is part of how the GTK control displays the entries and not an actual rhythmbox entry field.

My proposal would be to add a hidden field to the entries in the static playlist which would indicate the default ordering. This would then be saved in playlists.xml . And, of course, you'd have to update it when using drag'n'drop. 

To return to the default sort order, you would click a third time on the table headers. 

I have no idea how to implement all this though. And I don't even know if it is possible.
Comment 56 Jonathan Matthew 2012-11-08 21:20:43 UTC
(In reply to comment #55)
> I don't think it is possible to use the sequence number - I believe that is
> part of how the GTK control displays the entries and not an actual rhythmbox
> entry field.

More or less correct.

> My proposal would be to add a hidden field to the entries in the static
> playlist which would indicate the default ordering. This would then be saved in
> playlists.xml . And, of course, you'd have to update it when using drag'n'drop. 

RBPlaylistSource includes a hash table that records which entries are in the playlist. I'd suggest replacing this with a GSequence so it has an order, then using it for the 'playlist position' column and for saving static playlists. The playlist track number column probably shouldn't be shown in automatic playlists.

Drag and drop should be disabled when the playlist is sorted by anything other than playlist position.

> To return to the default sort order, you would click a third time on the table
> headers. 

I think this should be done by clicking on the playlist position column header.

> I have no idea how to implement all this though. And I don't even know if it is
> possible.

I'm confident that what I've outlined above is possible to implement.
Comment 57 Luc Pi 2012-11-08 22:07:41 UTC
(In reply to comment #56)

> > To return to the default sort order, you would click a third time on the table
> > headers. 
> 
> I think this should be done by clicking on the playlist position column header.

There are applications that have 3 states per column (like Tomboy for example)
1. ordered          (UI: arrow down)
2. ordered reverse  (UI: arrow up)
3. not ordered      (UI: no arrow)

This way, the original order is simply when no column is "ordered" (direct or reverse)
And the playlist position column can be hidden if needed.
Comment 58 Balakrishnan B 2012-11-09 04:58:02 UTC
(In reply to comment #56)
> (In reply to comment #55)
> > I don't think it is possible to use the sequence number - I believe that is
> > part of how the GTK control displays the entries and not an actual rhythmbox
> > entry field.
> 
> More or less correct.
> 
> > My proposal would be to add a hidden field to the entries in the static
> > playlist which would indicate the default ordering. This would then be saved in
> > playlists.xml . And, of course, you'd have to update it when using drag'n'drop. 
> 
> RBPlaylistSource includes a hash table that records which entries are in the
> playlist. I'd suggest replacing this with a GSequence so it has an order, then
> using it for the 'playlist position' column and for saving static playlists.
> The playlist track number column probably shouldn't be shown in automatic
> playlists.
> 
> Drag and drop should be disabled when the playlist is sorted by anything other
> than playlist position.
> 
> > To return to the default sort order, you would click a third time on the table
> > headers. 
> 
> I think this should be done by clicking on the playlist position column header.
> 
> > I have no idea how to implement all this though. And I don't even know if it is
> > possible.
> 
> I'm confident that what I've outlined above is possible to implement.

Great! Thanks. Expecting the fix soon. :)
Comment 59 Keshav Kini 2014-05-30 05:18:38 UTC
ping.
Comment 60 GNOME Infrastructure Team 2018-05-24 11:05:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/120.