Use element sort instead of drupal_sort.