-1

See this link.

At the moment an extension is sorting the list through a tag (using a render hook?):

<sort2>
* C
* A
* B
</sort2>

Outputs:

  • A
  • B
  • C

However, the result is temporary in that it is kicking in each time the page is loaded and this might have downsides as the list grows.

Can you think of another way to achieve the same?

Perhaps there's a way of saving the output to the wiki page/database.

P.S: Posted this here as the question does not seem a fit for SO.

James P.
  • 1,223

2 Answers2

5

The thing to take advantage of here is that one write is read many times. Sort on the write, not on the read.

Up to you if you want to do that client or server side. But if letting clients sort on the read is not good enough, that's the next step.

candied_orange
  • 119,268
1

The sort exension appears to be a server side component in php. So you shouldn't worry about its performance unless the list gets REALLY big ie 1 million

I would go towards a manual solution rather than try and code this functionality. As its a wiki you already have built in editing tools. With people adding their own names to the list you will inevitably get mistakes and inconsistent formatting. So you are going to need to edit it occasionally anyway. When you do, sort the list.

Ewan
  • 83,178