forked from github-starred/komodo
dont sort groups procedures
This commit is contained in:
@@ -120,7 +120,7 @@ impl State {
|
||||
user: &RequestUser,
|
||||
query: impl Into<Option<Document>>,
|
||||
) -> anyhow::Result<Vec<Group>> {
|
||||
let mut groups: Vec<Group> = self
|
||||
let groups: Vec<Group> = self
|
||||
.db
|
||||
.groups
|
||||
.get_some(query, None)
|
||||
@@ -136,7 +136,7 @@ impl State {
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
groups.sort_by(|a, b| a.name.to_lowercase().cmp(&b.name.to_lowercase()));
|
||||
// groups.sort_by(|a, b| a.name.to_lowercase().cmp(&b.name.to_lowercase()));
|
||||
Ok(groups)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ impl State {
|
||||
user: &RequestUser,
|
||||
query: impl Into<Option<Document>>,
|
||||
) -> anyhow::Result<Vec<Procedure>> {
|
||||
let mut procedures: Vec<Procedure> = self
|
||||
let procedures: Vec<Procedure> = self
|
||||
.db
|
||||
.procedures
|
||||
.get_some(query, None)
|
||||
@@ -159,7 +159,7 @@ impl State {
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
procedures.sort_by(|a, b| a.name.to_lowercase().cmp(&b.name.to_lowercase()));
|
||||
// procedures.sort_by(|a, b| a.name.to_lowercase().cmp(&b.name.to_lowercase()));
|
||||
Ok(procedures)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import Input from "../../shared/Input";
|
||||
import Flex from "../../shared/layout/Flex";
|
||||
import Grid from "../../shared/layout/Grid";
|
||||
import { NewGroup } from "./New";
|
||||
import Servers from "./Servers";
|
||||
import s from "../home.module.scss";
|
||||
import { combineClasses } from "../../../util/helpers";
|
||||
import Server from "./Server";
|
||||
@@ -175,6 +174,10 @@ const Group: Component<{ id: string }> = (p) => {
|
||||
);
|
||||
}}
|
||||
</For>
|
||||
<div
|
||||
class="lightgrey"
|
||||
style={{ opacity: 0.7, width: "100%", height: "3px" }}
|
||||
/>
|
||||
</Show>
|
||||
</Show>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user