Page 1 of 2
Order of wards in directory
Posted: Sun May 01, 2011 10:17 am
by craiggsmith
Is there a way to control the order of the wards when listed on the web site, such as in the directory? On both the old web site (main page) and new one our wards are listed in the following order:
1st, 2nd, 3rd, 4th, 5th, 6th, 8th, 10th, 7th.
I can't figure out why the 7th ward is always last; I've looked in MLS and CDOL and don't see any way to control it.
Thanks.
Posted: Sun May 01, 2011 10:34 am
by jdlessley
That is interesting. Since all our wards are alpha names they are displayed (sorted) alphabetically. I would assume numerically named wards would be displayed similarly. I'd love to hear from Ryan Jones what he knows.
Posted: Sun May 01, 2011 11:54 am
by eblood66
jdlessley wrote:That is interesting. Since all our wards are alpha names they are displayed (sorted) alphabetically. I would assume numerically named wards would be displayed similarly. I'd love to hear from Ryan Jones what he knows.
It is interesting. Our units are sorted alphabetically but 4 of the units all start with Spanish Fork and then have a number. These units are sorted by number (1st, 9th, 12th, 23rd) within that group which isn't what you'd expect with a character order sort.
This makes me think there is a manual order, probably in CDOL. Interestingly the units are in the same order in CDOL except that the one branch comes before the wards. My guess is that CDOL has a child unit order attribute but it sorts by unit type first and then by the child order whereas the directory just uses the child order. If that's true then contacting CDOL support would probably be a good option for fixing the order.
In any case, I'm sure that Ryan does know how it works. Hopefully he'll see this and chime in.
Posted: Sun May 01, 2011 11:57 am
by russellhltn
eblood66 wrote:This makes me think there is a manual order, probably in CDOL.
Perhaps a hidden "sort by" field.
Posted: Sun May 01, 2011 10:55 pm
by craiggsmith
Thanks. An inquiry to CDOL support sounds like the best option at this point.
Posted: Mon May 02, 2011 12:35 am
by russellhltn
craiggsmith wrote:An inquiry to CDOL support sounds like the best option at this point.
I'd wait and see if Ryan Jones chimes in. He's the developer for CDOL and tends to speak up on such issues.
Posted: Mon May 02, 2011 1:59 am
by rpyne
I believe if you look at the unit numbers, you will find that is the sort order.
Posted: Mon May 02, 2011 3:24 am
by russellhltn
rpyne wrote:I believe if you look at the unit numbers, you will find that is the sort order.
I don't see it that way.
I think I found the problem. It's sorted alphabetically. All the single digit wards have a double space in front of the number so they will sort before the 10th ward. But the 7th ward does not. Since it's alphabetical, not numerical, it's being placed at the end.
But you can't see that on the page since the browser always treats multiple spaces as a single space. But if you go into the page source, you can see it.
I don't think there's any way for a local unit to fix that. Someone at CHQ will have to edit the ward name.
Posted: Mon May 02, 2011 7:18 am
by eblood66
RussellHltn wrote:I don't see it that way.
I think I found the problem. It's sorted alphabetically. All the single digit wards have a double space in front of the number so they will sort before the 10th ward. But the 7th ward does not. Since it's alphabetical, not numerical, it's being placed at the end.
But you can't see that on the page since the browser always treats multiple spaces as a single space. But if you go into the page source, you can see it.
I don't think there's any way for a local unit to fix that. Someone at CHQ will have to edit the ward name.
You're absolutely right. There are two spaces before the single digit numbers in my stake as well. That does explain the sort order.
Posted: Mon May 02, 2011 9:29 am
by jonesrk
You guys are good. The wards with a single digit number do have 2 spaces (when there are 2 digit numbers also) to force the sorting and with html you don't see the extra space.
craiggsmith, I have added an extra space to the 7th ward so it should show up in the correct order now (depending on where they get the data it may have to wait for overnight).