Fix problem with search result ordering
Created by: yngwi
When a charter to be included in the search result charter has more than one cei:date/cei:dateRange element, an error was thrown. This pull request changes the sorting code to only take the first cei:text//cei:issued/cei:date or cei:text//cei:issued/cei:dateRange element into account for sorting.
Tested on the dev server.