There must be times when people don't realise the opportunity to construct the list in sorted order, depending, of course, on where the data is coming from. [What structure would help achieve this, so that it could then be inserted into a list/array?]
I suppose, in most cases, a native sort() method is very efficient, so it is simpler to just get the data and then sort() it.
But, yeah, this is probably too far at a tangent

New Topic/Question
Reply



MultiQuote



|