As nothing’s as straight forward as PHP, I had to write my own class to sort ArrayCollections. My work was inspired by what Peter Dehaan did.
The method is to be used as follows:
ArrayUtils.sort(games, "playerScore", "DESC", true);
to sort an ArrayCollection of games by player score, with a de ...
It may be necessary to sort a dataset after a SQL request. And in a general case, I prefer using this function instead of dealing with the ORDER BY and LIMIT clauses.
So I wrote this method (which is part of my Utils class, in my own framework):
Who am I
Hi folks! My name's Cyril Mazur, and I'm a french web architect currently living in France (surprisignly? I travel a lot).
I love programming in all its forms, but I couldn't sleep with another language than PHP.
I do websites, put them up on comfy linux servers, and market them. While graduating
an MSc of eBusiness at
Oxford Brookes University in 2010,
I founded Forexagone.com with 2 mates.
I'm not looking for a job, but you can still check out my résumé to learn more about me.