/* Copyright © 2024 Melbet - All Rights Reserved */ import{isObject as c}from"./entry-Bl6dkD65.js";const d=(t,s,u="name")=>{if(!s)return t;const i=r=>{const e=c(r)?r[u]:r;return String(e).toLowerCase().indexOf(s.toLowerCase())};return t.sort((r,e)=>{const o=i(r),n=i(e);return o===n?0:o===-1?1:n===-1?-1:o-n}),t};export{d as sortBySearchString};