UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

2 lines (1 loc) 203 B
import{useMemo as e}from"react";const n=n=>e((()=>n.sort(((e,n)=>{const o=null===e.name?"":`${e.name}`,r=null===n.name?"":`${n.name}`;return o.localeCompare(r)}))),[n]);export{n as useGetOptionsBySort};