plots2
plots2 copied to clipboard
Wiki Pages can't be sorted by the name
Please describe the problem (or idea)
List of wiki pages is available at https:publiclab.org/wiki. User is not able to sort them according to the name
Ah, that's unfortunate. Do you think this is related to an issue with the routes.rb file as per Rails 4.1 upgrade? This was actually implemented not too long ago. Can you check what controller and action is being used to generate this page? Thanks for the catch!!
On Mon, Jan 8, 2018 at 2:12 PM, Sidharth Bansal [email protected] wrote:
Please describe the problem (or idea)
List of wiki pages is available at https:publiclab.org/wiki. User is not able to sort them according to the name [image: image] https://user-images.githubusercontent.com/20972099/34687794-d6e078c6-f4d5-11e7-9ab9-6ee0165d5f48.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1930, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ1KQkyGOhFBz-YeMFk6LCmLPUoLSks5tImiAgaJpZM4RW0b4 .
Great catch! thank you for helping fix this!
yeah, happy to help
@jywarren I have looked at the controller's action but can't find any bug there. I tried to reproduce the error at my localhost but it is working fine in the development mode. But there is an error in the production. Also, one thing I noticed that the SQL query will sort according to the ASCII encoding ie 0-9 then A-Z then a-z. I don't think that is an issue.
In the development mode it is sorting correctly.
from what i can observe as a site Admin, I am able to sort wiki pages by name, however there is unexpected behavior:
- two wiki pages that begin with
P
are before numbered pages - in the midst of numbered pages (usually a date, like 2013), there is the
Barnraising
page

@SidharthBansal may i work on it?
@namangupta01 yeah you can work on this.
https://publiclab.org/wiki?sort=title really doesn't seem to be working?? Not sure.