*Magnify*
SPONSORED LINKS
Printed from https://writing.com/main/forums/message_id/2154543
Rated: ASR · Message Forum · Writing.Com · #102362
Drop your new ideas into the Writing.Com Suggestion Box!
<< Previous  •  Message List  •  Next >>
Reply  •  Post New
Oct 23, 2010 at 9:42pm
#2154543
Sort function
by A Non-Existent User
A "sort function" would be cool, by which writingML items were put in alphabetical order when rendered into HTML.

I've been doing it manually on my "Invalid Item (check the "by genre" dropdown for examples) and it's a pain! lol


This would be of use to anyone maintaining lists on WdC - of entries, of contests, of participants - really, lists of anything that would benefit by being listed alphabetically.


I imagine something like:{sort}{item}..writingML..{/item}{item}...writingML...{/item}....{/sort}, where the individual items get put into alphabetical order in the rendered HTML.


Ideally, this would be as easy as dumping their rendered HTML into an array and passing them through java's array.sort(sortFunc()) function - I guess the tricky bit would be writing a sortFunc() that would order things properly.


*Bigsmile*

LP
MESSAGE THREAD
*Star*
Sort function · 10-23-10 9:42pm
by A Non-Existent User

The following section applies to this forum item as a whole, not this individual post.
Any feedback sent through it will go to the forum's owner, The StoryMistress.
Printed from https://writing.com/main/forums/message_id/2154543