mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-06-28 15:39:44 +02:00
* Docs/userguide switching * Initial commit of userdocs merge * Remove service worker, fix rendering * Remove limited sources * UX improvements per Paul design * Tweak version select for FF * Fix mobile view * Final tweaks to UI * Tweaks to search bar, clean up conflicts * Fix icons * Hide search if no API key
10 lines
300 B
TypeScript
10 lines
300 B
TypeScript
import { SilverstripeDocument } from "../types";
|
|
|
|
const sortFiles = (a: SilverstripeDocument, b: SilverstripeDocument): number => {
|
|
if (a.isIndex !== b.isIndex) {
|
|
//return a.isIndex ? -1 : 1;
|
|
}
|
|
return a.fileAbsolutePath > b.fileAbsolutePath ? 1 : -1;
|
|
};
|
|
|
|
export default sortFiles; |