landscape: remove reverse alphabetical sort

This commit is contained in:
Matilde Park 2020-10-30 16:13:17 -04:00
parent caffdcbc68
commit dcc8ea666d
4 changed files with 2 additions and 9 deletions

View File

@ -8,13 +8,8 @@ export * from './group-update';
export * from './graph-update'; export * from './graph-update';
export * from './invite-update'; export * from './invite-update';
export * from './launch-update'; export * from './launch-update';
export * from './link-listen-update';
export * from './link-update';
export * from './local-update'; export * from './local-update';
export * from './metadata-update'; export * from './metadata-update';
export * from './noun'; export * from './noun';
export * from './permission-update';
export * from './publish-response';
export * from './publish-update';
export * from './s3-update'; export * from './s3-update';
export * from './workspace'; export * from './workspace';

View File

@ -31,8 +31,7 @@ function sidebarSort(
return { return {
asc: alphabetical, asc: alphabetical,
desc: (a, b) => alphabetical(b, a), lastUpdated
lastUpdated,
}; };
} }

View File

@ -87,7 +87,6 @@ export function SidebarListHeader(props: {
<Text color="gray">Sort Order</Text> <Text color="gray">Sort Order</Text>
</Box> </Box>
<Radio mb="1" label="A -> Z" id="asc" name="sortBy" /> <Radio mb="1" label="A -> Z" id="asc" name="sortBy" />
<Radio mb="1" label="Z -> A" id="desc" name="sortBy" />
<Radio label="Last Updated" id="lastUpdated" name="sortBy" /> <Radio label="Last Updated" id="lastUpdated" name="sortBy" />
</Col> </Col>
<Col px={2}> <Col px={2}>

View File

@ -5,7 +5,7 @@ export type SidebarItemStatus =
| "disconnected" | "disconnected"
| "loading"; | "loading";
export type SidebarSort = "asc" | "desc" | "lastUpdated"; export type SidebarSort = "asc" | "lastUpdated";
export interface SidebarListConfig { export interface SidebarListConfig {
sortBy: SidebarSort; sortBy: SidebarSort;