I came upon this question, a while back. TL;DR: the user is trying to implement a custom List
, and does not understand when Unity complains that it does not have the required interface
to complete its Sort()
method.
I identified the problem, quickly. I have had the same problem, in general programming. I also know the solution, but here's the problem: the entire subject of the matter (question and answer) are very generic to programming (or maybe C#, rather).
I flagged the question, and tried to suggest the user post at StackOverflow. The user still hasn't received an answer, and the question was not closed.
Recently, another user commented on the question, saying that generic programming questions are tolerated, if they are in the context of game programming. It was decided, here on meta, though they could not find the link.
My understanding has been that if you can take out the game development element of the question, without changing the question and relative answers, it is a generic programming question.
Ultimately, the user is asking why Sort()
is not working. They need to implement a method or two that compares whatever primary value their class contains, but this all has very little to nothing to do with game development.
Am I wrong, here, and this sort of question is acceptable? If it is acceptable, I will actually answer it.