Sorting fix at FileDB manager