This might work for you... it has a normalization feature, and allows you the then compare the normalized LC numbers.
https://github.com/rayvoelker/js-loc-callnumbers --Ray On Fri, Dec 6, 2019 at 7:46 PM Dhanushka Samarakoon <dhan...@gmail.com> wrote: > Hi Kun, > > This is a JS that I wrote sometime back to normalize LC call numbers. > > https://gist.github.com/dhanushka-samarakoon/1f0e080cbca48b4a53a7b988a9b020d2 > Even though it does not directly address comparison, you can normalize and > then compare. > > -Dhanushka. > > On Thu, Dec 5, 2019 at 5:13 PM Kun Lin <l...@whitman.edu> wrote: > > > Is there any good existing scripts of comparing LC call numbers to > > determine which one should come first? Javascript or PHP. > > > > > > > > > > > > Thanks a lot > > > > ---- > > > > Kun Lin > > > > Systems and Application Librarian > > > > Whitman College > > > > > > > > PGP Public Key https://kj7ieg.com/dnwklin_public.txt > > > -- Ray Voelker (937) 620-1830