-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort columns in TracksList #62
Comments
|
Indeed. The main difficulty here is sorting. E.g If I filter by year, great, but how tracks with the same year will be sortered then ? Do we need to define how every sorting should behave ? Like:
Another question: should the ASC/DESC sorting be only on the first sort or all the ones after ? @YurySolovyov Did you encouter these kind of problems with folders/files mix sorting with Eion for example ? I'm curious about everyone's thoughts here, if everybody can tell me how their favorite music players behave, that'd be great too |
We could add a "type" to each column, like date, string, number, time, etc. Then we'd just have a sorting algorithm for each one. |
I think that's indeed the thing to do. We just have to define the sorting algorythm for every column now .__. |
@KeitIG there was (and still is) an issue in Eion like "finding a needle in the haystack", where I need to select 1 item in 6k lines and it take a lot fot react to do it. I'd measured the time it needs to just re-render entire view, which would probably happen on most sorts. Other things is to try to employ some kind of Virtual Lists that render only the visible items. |
@YurySolovyov You might be interested by: http://blog.atom.io/2015/06/24/rendering-improvements.html I was more thinking about the sorting algorithms here between rows here |
@KeitIG sorting itself is going to be fast compared to the actual rendering. I think. 😄 |
I think you don't get what I mean haha. I'm just speaking about sorting files/folders here, imagine you sort by "type", so it sorts all your directory with let say folders first, then files. Do you have a second sort ? To sort by filename ? Or is it arbitrary ? |
@KeitIG I went simpler way, though it won't work for museeks: |
react-datagrid seems to accomplish what we want. Thoughts? |
No, it lacks all the features of the
|
@KeitIG FWIW last time I looked into |
Well, there's a bit maths inside. |
Hmm. I think it does support some of those features, but I looked into it a bit more, and it looks like it's not being very well maintained so I agree we shouldn't use that. However, are you opposed to using any 3rd party component libraries? It certainly is fun to reinvent sometimes, but it's also a lot of work. |
ok, for this one we can start with sorting. Editable columns is a bonus that can be done later |
How are we going to store them? in config or db? |
For sorting, there will be a hashmap for each type of column:
So we'll need to agree on these. Then there will be two options stored in config:
and I think the asc/dsc option should only apply on the first parameter, so for "Filter by artist" and "dsc", only the "artist" key would be sorted dsc. The "sub-keys" would be asc. Does it look good ? |
Not sure if there is an easy way to code this or if I'll have to hardcode all posibilities. Those sort options will be shared across views btw. |
This is in progress, last big issue to fix before 0.9 release. |
Going through the whole thing, I do not think it makes any sense to add sorting for playlists. |
Why not? |
Done in #411 |
Hi, Thanks for wonderful software (currently best on macOS IMO) Screen cast: https://www.dropbox.com/s/zm93w28rsqsvj1k/foo.webm?dl=0 Primary sorting by album isn't secondary sorting by track - bug?:
Hope to hear back Cheers PS files have track # ID3 tags: |
You can see the order here: https://github.com/martpie/museeks/blob/master/src/ui/constants/sort-orders.ts Feel free to open an issue if you disagree with one :) (possible I made a mistake too) |
I see, so it's not a bug, the reason [t]his isn't working is because track numbers aren't implemented (as columns) yet? Cheers t:
|
It should: Can you open an issue with screenshots and files to reproduce the issue? |
Hi @martpie, FYI will open a new issue in due course if I suffer the same issue with the next batch of imported music Aside, is there a reason a track number column isn't available? Tonight, I have an album where a couple of tracks have inconsistent artist tags which throws out the album's natural play order and I'm unable to fix it because there's no track number column: Hope to hear back Sincerely |
Yep, this is a limitation of the current view, hopefully #130 will help fix that :)
If track number was available, all the tracks "1" would be grouped together, then all the "2", etc. That is why it makes no sense to display (for now) a "tracks number" column |
Search/filter by album (see screen shot above) then sort by track number would allow me to fix this use case so, if #130 is bottlenecking this then, I would suggest a track number column would make sense now |
Cf #401 then I believe :) |
@martpie still suffering this issue - would you like me to create a new issue or do you think #130 and/or #401 will fix this? Sincerely |
BUMP |
1 similar comment
BUMP |
@ldexterldesign Can you share with me a list of files (my email is on my GH profile), and tell me what should be the expected default order in your opinion? |
This is a to-do thing: we must be able to add/remove/rearrange metatags columns. Not the most urgent thing though.
Sorting algorithms
The text was updated successfully, but these errors were encountered: