use sort method working on php 5.3