sort that works on all browsers