summaryrefslogtreecommitdiff
path: root/components/vendor-data
diff options
context:
space:
mode:
Diffstat (limited to 'components/vendor-data')
-rw-r--r--components/vendor-data/sidebar.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/vendor-data/sidebar.tsx b/components/vendor-data/sidebar.tsx
index edaf2e25..941dbb38 100644
--- a/components/vendor-data/sidebar.tsx
+++ b/components/vendor-data/sidebar.tsx
@@ -205,7 +205,9 @@ export function Sidebar({
(No forms loaded)
</p>
) : (
- forms.map((form) => {
+ forms
+ .sort((a, b) => a.formName.localeCompare(b.formName))
+ .map((form) => {
const isFormActive = form.formCode === currentFormCode
const isDisabled = currentItemId === null
@@ -280,7 +282,9 @@ export function Sidebar({
No forms available
</p>
) : (
- forms.map((form) => {
+ forms
+ .sort((a, b) => a.formName.localeCompare(b.formName))
+ .map((form) => {
const isFormPackageActive =
pkg.itemId === currentItemId &&
form.formCode === currentFormCode