plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Wiki Pages can't be sorted by the name

Open SidharthBansal opened this issue 7 years ago • 9 comments

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

SidharthBansal avatar Jan 08 '18 19:01 SidharthBansal

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 .

jywarren avatar Jan 08 '18 20:01 jywarren

Great catch! thank you for helping fix this!

ebarry avatar Jan 09 '18 20:01 ebarry

yeah, happy to help

SidharthBansal avatar Jan 10 '18 02:01 SidharthBansal

@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.

SidharthBansal avatar Jan 20 '18 11:01 SidharthBansal

In the development mode it is sorting correctly.

SidharthBansal avatar Jan 20 '18 11:01 SidharthBansal

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
screen shot 2018-01-20 at 11 38 28 am

ebarry avatar Jan 20 '18 16:01 ebarry

@SidharthBansal may i work on it?

namangupta01 avatar Jan 22 '18 10:01 namangupta01

@namangupta01 yeah you can work on this.

SidharthBansal avatar Jan 22 '18 10:01 SidharthBansal

https://publiclab.org/wiki?sort=title really doesn't seem to be working?? Not sure.

jywarren avatar Apr 05 '22 22:04 jywarren