Need some help: tag sorting
Nov. 24th, 2009 12:30 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Since
denise asked so nicely, I might put up some questions during the next few days.
I apologize if this description is messy - I can be very bad at explaining these things.
One of the bugs I am currently stuck on is http://bugs.dwscoalition.org/show_bug.cgi?id=2012 use a tag list not a tag cloud on the subscription filter interface The goal is to change th tag cloud here: http://www.dreamwidth.org/manage/subscriptions/filters to an alphabetically sorted tag list with usage numbers. Despite my complete inability with javaScript, I managed the 'tag list with usage numbers' part fine. I am, however, stuck on the alphabetically sorted part.
( Read more... )
Any ideas?
EDIT: Okay, looks like I either need to sort the ids by name and then return both the hashref and the array and handle that in the JavaScrript portion or sort in htdocs/js/subfilters.js itself. The relevant code is in function cfUpdateTags( data ), the
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
I apologize if this description is messy - I can be very bad at explaining these things.
One of the bugs I am currently stuck on is http://bugs.dwscoalition.org/show_bug.cgi?id=2012 use a tag list not a tag cloud on the subscription filter interface The goal is to change th tag cloud here: http://www.dreamwidth.org/manage/subscriptions/filters to an alphabetically sorted tag list with usage numbers. Despite my complete inability with javaScript, I managed the 'tag list with usage numbers' part fine. I am, however, stuck on the alphabetically sorted part.
( Read more... )
Any ideas?
EDIT: Okay, looks like I either need to sort the ids by name and then return both the hashref and the array and handle that in the JavaScrript portion or sort in htdocs/js/subfilters.js itself. The relevant code is in function cfUpdateTags( data ), the
for ( id in data.tags ) {
loop would need to be run through in order of data.tags[id].name
.