https://jira.deutsche-digitale-bibliothek.de/browse/DDBNEXT-1597: Change behaviour of rank function in case user has changed the sort order