diff --git a/src/app/kvm/components/LXDVMsTable/LXDVMsTable.test.tsx b/src/app/kvm/components/LXDVMsTable/LXDVMsTable.test.tsx index 8b6cf983ff..d989d2241e 100644 --- a/src/app/kvm/components/LXDVMsTable/LXDVMsTable.test.tsx +++ b/src/app/kvm/components/LXDVMsTable/LXDVMsTable.test.tsx @@ -42,7 +42,7 @@ describe("LXDVMsTable", () => { group_key: null, page_number: 1, page_size: 10, - sort_direction: FetchSortDirection.Descending, + sort_direction: FetchSortDirection.Ascending, sort_key: FetchGroupKey.Hostname, }; const expectedAction = machineActions.fetch(generateCallId(options), { @@ -51,7 +51,7 @@ describe("LXDVMsTable", () => { group_key: null, page_number: 1, page_size: 10, - sort_direction: FetchSortDirection.Descending, + sort_direction: FetchSortDirection.Ascending, sort_key: FetchGroupKey.Hostname, }); expect( diff --git a/src/app/machines/views/MachineList/MachineListTable/constants.ts b/src/app/machines/views/MachineList/MachineListTable/constants.ts index 36cdacc830..752d9eb660 100644 --- a/src/app/machines/views/MachineList/MachineListTable/constants.ts +++ b/src/app/machines/views/MachineList/MachineListTable/constants.ts @@ -2,7 +2,7 @@ import { SortDirection } from "app/base/types"; import { FetchGroupKey } from "app/store/machine/types"; export const DEFAULTS = { pageSize: 50, - sortDirection: SortDirection.DESCENDING, + sortDirection: SortDirection.ASCENDING, // TODO: change this to fqdn when the API supports it: // https://github.com/canonical/app-tribe/issues/1268 sortKey: FetchGroupKey.Hostname, diff --git a/src/app/tags/views/TagMachines/TagMachines.test.tsx b/src/app/tags/views/TagMachines/TagMachines.test.tsx index 3181202f5f..2200b9ec0e 100644 --- a/src/app/tags/views/TagMachines/TagMachines.test.tsx +++ b/src/app/tags/views/TagMachines/TagMachines.test.tsx @@ -96,7 +96,7 @@ it("dispatches actions to fetch necessary data", () => { group_key: null, page_number: 1, page_size: 50, - sort_direction: FetchSortDirection.Descending, + sort_direction: FetchSortDirection.Ascending, sort_key: FetchGroupKey.Hostname, }), tagActions.fetch(),