updated default array sort function to please IE