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.
LP
MESSAGE THREAD
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
All Writing.Com images are copyrighted and may not be copied / modified in any way. All other brand names & trademarks are owned by their respective companies.
Generated in 0.10 seconds at 7:54am on Feb 04, 2025 via server WEBX1.