Use an Array.compare method to check for order also