Forum:Java and categories

Hello again. I was wondering if it would be within the realm of possibility to use some kind of java code on categories. What I'd like to do is have two links somewhere on the page. One of them would switch the way the pages are listed by somehow ignoring the DEFAULTSORT magic word. The other link would change it back to using the magic word. Any help would be appreciated. Thanks! 10:47, December 7, 2012 (UTC)


 * It can be done, but it's messy and I wouldn't recommend it. JavaScript is able to sort the links differently, but it needs the data first. That's not a problem when all the data is on the page already, but it does become problem when the category is a large one and those "next 200" links appear. I poked around your wiki a little and stumbled over the category women. Now that's a huge one. There are almost a thousand entries and the script would have to fetch and sort all of them. That's a bit much. --


 * Sorry I didn't add this earlier. We wouldn't be using it on all of the categories, just a select few. Most, if not all, would be under the 200 page limit. Would something like that be possible?  11:30, December 7, 2012 (UTC)