import type { FzfResultItem , Selector } from "./types" ; export function byLengthAsc < U > ( a , b , selector ) { return selector ( a . item ) . length - selector ( b . item ) . length ; } export function byStartAsc < U > ( a , b ) { return a . start - b . start ; }