diff --git a/site/src/components/Sorting.jsx b/site/src/components/Sorting.jsx
new file mode 100644
index 0000000..7f15661
--- /dev/null
+++ b/site/src/components/Sorting.jsx
@@ -0,0 +1,73 @@
+import { useState } from "react";
+
+const SortLevel = (props) => {
+ return (
+ <>
+
+ reversed?
+
+ >
+ )
+}
+
+
+const Sorting = (props) => {
+ const [selections, updateSelections] = useState([-1]);
+ const updateOption = (x, id) => {
+
+ selections[id] = x;
+
+ let unusedOptions = [...selections];
+ let selectionsUpdate = selections.map((x, i, arr) => {
+ if (i < id) {
+ unusedOptions.filter((v) => v != x);
+ return x;
+ }
+
+ if (x != -1 && arr.indexOf(x) != i) {
+ return unusedOptions[0];
+ }
+ return x
+ })
+
+ selectionsUpdate = selectionsUpdate.filter((x, i) => x != -1);
+
+ if (selectionsUpdate.length == 0 || selectionsUpdate[selectionsUpdate.length - 1] != -1) {
+ selectionsUpdate.push(-1)
+ }
+ console.log(selectionsUpdate)
+ updateSelections(selectionsUpdate);
+
+
+ }
+ const array = props.array;
+ const keys = props.keys;
+
+
+
+
+ return (
+ <>
+ {
+ selections.map((x, i, arr) => {
+ let curenSelectiontArr = keys.filter((selection) => !arr.slice(0, i).includes(keys.indexOf(selection)))
+ const upadteOptionWrap = (event) => {
+ console.log(event)
+ updateOption(Number(event.target.value) - 1, i)
+ };
+
+ return
| {item} | ); return( - <> {cells} > + <>{cells}> ) }
|---|