Bill Dueber wrote a gem for that: https://github.com/billdueber/lc_callnumber Since he did specifically ask for Ruby or Python. Looks like the Google Code link has a Python solution in it. Best, Eric On Fri, Jul 11, 2014 at 9:44 AM, Doran, Michael D <[log in to unmask]> wrote: > Hi Rob, > > > Does anyone know of any scripts (preferably in Ruby or Python) which can > > slice up an LC call number and sort a table of items by LC call number? > > Here be perl: > > sortLC: for sorting LC call numbers > http://rocky.uta.edu/doran/sortlc/ > > -- Michael > > # Michael Doran, Systems Librarian > # University of Texas at Arlington > # 817-272-5326 office > # 817-688-1926 mobile > # [log in to unmask] > # http://rocky.uta.edu/doran/ > > > > > -----Original Message----- > > From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of > > Robert Dumas > > Sent: Friday, July 11, 2014 11:01 AM > > To: [log in to unmask] > > Subject: [CODE4LIB] LC Call # splitting/sorting scripts? > > > > Hey all: > > > > Does anyone know of any scripts (preferably in Ruby or Python) which can > > slice up an LC call number and sort a table of items by LC call number? > > > > -- > > Rob Dumas > > Chicago Public Library > > Woodson Regional >