We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5708a7 commit 21894d9Copy full SHA for 21894d9
src/pages/common/multi-chip-cell-renderer.tsx
@@ -30,7 +30,7 @@ export interface MultiChipCellRendererProps {
30
}
31
32
const MultiChipCellRenderer = (props: MultiChipCellRendererProps) => {
33
- const values: string[] = props.value || [];
+ const values: string[] = props.value ? [...props.value].sort((a: string, b: string) => a.localeCompare(b)) : [];
34
const containerRef = useRef<HTMLDivElement>(null);
35
const [chipLimit, setChipLimit] = useState<number>(5);
36
0 commit comments