diff --git a/src/fio/fioEngine.js b/src/fio/fioEngine.js index aa4cc5dbe..6829edaf3 100644 --- a/src/fio/fioEngine.js +++ b/src/fio/fioEngine.js @@ -312,18 +312,12 @@ export class FioEngine extends CurrencyEngine { getFioRequests: async ( type: string, page: number, - itemsPerPage: number = 50, - newFirst: boolean = false + itemsPerPage: number = 50 ): Promise => { const startIndex = itemsPerPage * (page - 1) - const endIndex = itemsPerPage * page - 1 - if (newFirst) { - return this.otherData.fioRequests[type] - .sort((a, b) => (a.time_stamp < b.time_stamp ? 1 : -1)) - .slice(startIndex, endIndex) - } + const endIndex = itemsPerPage * page return this.otherData.fioRequests[type] - .sort((a, b) => (a.time_stamp < b.time_stamp ? -1 : 1)) + .sort((a, b) => (a.time_stamp < b.time_stamp ? 1 : -1)) .slice(startIndex, endIndex) } }