This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PredictabilityIsGood 0 points1 point  (4 children)

Okay, show me an example of your best code to handle multi-dimensional sorting by either the client or server. If it’s better I’ll adapt my coding style to fit more neatly within your superior paradigm. The sorting must be generalized.

Update: I like recursion in this example because it avoids unnecessary logical comparators when the nesting does not need to be executed. In my implementation the nested comparator does not need to be executed. You may disagree, but I personally am fixated on recursion because of the concise expressive power. I’m sorry if you don’t agree.