2024-09-17 22:13:35 -05:00
|
|
|
import { map } from 'nanostores';
|
2024-09-17 21:44:36 -05:00
|
|
|
import {
|
2024-09-17 22:13:35 -05:00
|
|
|
type TankopediaSortBy,
|
|
|
|
|
type TankopediaSortDirection,
|
2024-07-09 14:43:33 -05:00
|
|
|
} from './tankopediaPersistent';
|
2024-07-02 19:19:15 -05:00
|
|
|
|
|
|
|
|
export interface TankopediaSort {
|
|
|
|
|
by: TankopediaSortBy;
|
|
|
|
|
direction: TankopediaSortDirection;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-12 21:11:48 -06:00
|
|
|
export const initialTankopediaSort: TankopediaSort = {
|
2024-09-17 22:13:35 -05:00
|
|
|
by: 'meta.none',
|
|
|
|
|
direction: 'descending',
|
2024-11-12 21:11:48 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const $tankopediaSort = map<TankopediaSort>(initialTankopediaSort);
|