Posts by GeanaDias • 11 points
2 posts
-
0
votes2
answers54
viewsQ: Problems in sorting by more than one criterion
In java we have the possibility to override the compareTo function of a class and use Sort() to sort an object array. I would like to do the same with Javascript, I already know I could use this…
javascriptasked GeanaDias 11 -
1
votes1
answer42
viewsQ: Javascript - It is possible to have a universal ordering function
I have an object called report and I have a report vector and I need to do several sorts, so I thought I would do an ordering function that was "universal". I wanted to be able to pass the attribute…