-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
File list sorting by clicking on column headers #8041
Conversation
|
💣 Test Failed. 💣 |
💣 Test Failed. 💣 |
💣 Test Failed. 💣 |
@jancborchardt please have a look, you might want to tweak the styles a bit. |
@DeepDiver1975 @icewind1991 I'm finished with this branch, but it is based off infinite scrolling, which means it will need rebase after infinite scroll is merged. |
🚀 Test Passed. 🚀 |
🚀 Test Passed. 🚀 |
CC @MTRichards |
Awesome! :) |
Works great, but why is sorting done server side instead of client side? |
Looks really nice :), but it seems some special characters in languages are not sorted properly. I think it was referred to: #7254 |
@icewind1991 client side might be slower especially with many files. Also in the future we might want to have the sorting be done by the database engine, and also the paging (only loading a few results, not the whole list) on the server side as well. @wakeup yes, you're right. |
Added unit test for the Helper class in the files app that tests the different sort orders.
Rebased. This is ready for review + testing. |
🚀 Test Passed. 🚀 |
@DeepDiver1975 feel free to hijack this PR... oops too late you already did it. 😉 |
@icewind1991 see my comment above about server side sorting. Are you ok with that approach ? Thanks. |
All intentional here 😉 |
If paging is done server side then sorting should obviously also be done server side but as long as the server sends the full filelist anyway, I would think client side sorting would always be faster since you don't need have an extra ajax request or query the database |
I think the extra ajax request is acceptable when clicking on headers. But one advantage of client-side sorting only would be to have consistent sort, always using an algo on the browser (locale/natural sort) I would hope that the sorting would be done on the SQL level, but due to the natural sort algos we want to use (and putting the directories first) it is not yet possible. |
🚀 Test Passed. 🚀 |
The inspection completed: 8 new issues, 16 updated code elements |
@icewind1991 besides IE8 there are also mobile browsers which might be slow as well to sort longer list of files. |
@icewind1991 I don't want to throw away the server side sort code just yet for the reasons mentionned above. |
To clarify: the "sharing overview page" uses a subclass of FileList and displays a list of shared files. |
Any chance it gets merged into version 6? |
No. This is a complex change that will be part of owncloud 7. We only backport Bugfixes. But you can use the master daily builds as a preview. |
Ups. Wrong button. Thanks @DeepDiver1975 :-) |
💣 Test Failed. 💣 |
@karlitschek np 😉 |
@owncloud-bot retest this please |
🚀 Test Passed. 🚀 |
As discussed with @karlitschek, server-side sort is the way to go for the files app. |
@icewind1991 can we merge this now ? |
Yes 👍 |
@jancborchardt I didn't receive any feedback about the design so I will merge this first. |
File list sorting by clicking on column headers
File list sorting by clicking on column headers.
This PR will contain file list sorting.