feat searchBar 시설명 가나다 순으로 정렬

This commit is contained in:
swcho
2025-08-11 18:23:05 +09:00
parent 3cc8fcb2eb
commit 579e599eb1
@@ -144,7 +144,9 @@ export const ProcSearchBar = ({ gisMaps, facilityTypes }: SearchBarProps) => {
}));
}
setFacilityData([{ text: "시도", val: "0" }, ...list]);
// 가나다순 정렬 후 set
const sorted = list.slice().sort((a, b) => a.text.localeCompare(b.text, 'ko'));
setFacilityData([{ text: "시도", val: "0" }, ...sorted]);
setFacilityValue("0");
};