dont sort groups procedures

This commit is contained in:
beckerinj
2023-01-14 23:15:38 -05:00
parent a483283352
commit 756490bc0c
3 changed files with 8 additions and 5 deletions

View File

@@ -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)
}
}

View File

@@ -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)
}
}

View File

@@ -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>
);