msort - utility for sorting records in complex ways

Property Value
Distribution Ubuntu 19.04 (Disco Dingo)
Repository Ubuntu Universe amd64
Package filename msort_8.53-2.2build1_amd64.deb
Package name msort
Package version 8.53
Package release 2.2build1
Package architecture amd64
Package type deb
Category universe/utils
License -
Maintainer Ubuntu Developers <>
Download size 59.98 KB
Installed size 198.00 KB
msort is a program for sorting files in sophisticated ways. It was originally
developed for alphabetizing dictionaries of "exotic" languages, for which it
has been extensively used, but is useful for many other purposes. msort differs
from typical sort utilities in providing greater flexibility in parsing the
input into records and identifying key fields and greater control over the
sort order. Its main distinctive features are:
o Msort can be used as a command-line program or via a graphical user
interface that is helpful not only to those who find a complicated command
line difficult to deal with but also to those unfamiliar with the finer
points of sorting.
o Records need not be single lines of text but may be delimited in a number
of ways.
o Key fields may be selected by position in the record (counting from the
beginning or the end), by character ranges (e.g. the key consists of the
fourth through eighth characters), or by matching a regular expression to
a tag.
o For each key an arbitrary sort order may be specified. Msort also
understands locales.
o For each key an effectively unlimited number of multigraphs (sequences
of characters to be treated as a single unit for purposes of sorting,
"collating elements" in Unicode parlance) of effectively unlimited length
may be defined.
o In addition to the usual lexicographic and numerical comparisons, msort
supports hybrid lexicographic-numeric comparison (for things like filenames
and section headings, so that, e.g., 2a will precede 10b), random
comparison, and ordering by angle, date, time, month name, domain name,
email address, ISO8601 date-time, and string length.
o Numbers may be in just about any known number system, e.g. Chinese or
o For each key a distinct set of characters may be excluded from
consideration when sorting in any combination of initial, final, and
medial position in the key field.
o For each key a distinct set of regular expression substitutions may be
defined. These provide the means to make names like McCarthy sort before
MacCawley, as if McCarthy were spelled MacCarthy as well as to handle the
rare cases in which a single character is treated for purposes of sorting
as a sequence, such as German "eszet" sign, which is traditionally sorted
as if it were ss.
o Lexicographic keys may be reversed, allowing the construction of reverse
o Any or all keys may be optional. For optional keys, the user may specify
how records missing the key field should compare to records in which the
key field is present.
o A choice of sorting algorithms with different properties is provided.
msort understands UTF-8 Unicode. Unicode may be used anywhere that text is
entered: in the text to be sorted, in sort order and exclusion definitions,
as a field or record separator, or as a field tag. Full Unicode
case-folding is available.


Package Version Architecture Repository
msort_8.53-2.2build1_i386.deb 8.53 i386 Ubuntu Universe
msort - - -


Name Value
libc6 >= 2.14
libicu63 >= 63.1-1~
libtre5 -
libuninum5 -


Type URL
Binary Package msort_8.53-2.2build1_amd64.deb
Source Package msort

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install msort deb package:
    # sudo apt-get install msort




2018-11-13 - Matthias Klose <>
msort (8.53-2.2build1) disco; urgency=medium
* No-change rebuild for icu soname changes.
2018-04-27 - Sergei Golovan <>
msort (8.53-2.2) unstable; urgency=medium
* Non-maintainer upload.
* Switch to the default Tcl/Tk since Tcl/Tk 8.5 is to be removed from
Debian (closes: #893087).
2016-04-24 - Matthias Klose <>
msort (8.53-2.1) unstable; urgency=medium
* Non-maintainer upload.
* Fix automake build error. Closes: #806473.
* Build using dh-autoreconf.
2013-12-11 - Bartosz Fenski <>
msort (8.53-2) unstable; urgency=low
* Uses -indep overrides to fix FTBFS on all archs (Closes: #731935)
2013-12-10 - Bartosz Fenski <>
msort (8.53-1) unstable; urgency=low
* The Akamai Technologies paid volunteer days release.
* New upstream release.
* ACK previous NMUs, thanks!
* Switched to new source format.
* Switched to new copyright format.
* Moved patches to new quilt format and described them.
* Bumped Standards-Version (no changes needed)
* Has correct tcl/tk dependencies (Closes: #545135)
* Doesn't segfault with certain input (Closes: #630485)
2011-08-29 - Jakub Wilk <>
msort (8.52-1.3) unstable; urgency=low
* Non-maintainer upload.
* Add -licuuc to LIBS to fix FTBFS with --no-copy-dt-needed-entries
(closes: #555755). Thanks to Peter Fritzsche for the bug report.
* Remove stray config.log from the source package.
2010-01-30 - Moritz Muehlenhoff <>
msort (8.52-1.2) unstable; urgency=medium
* Non-maintainer upload.
* Cherry-pick upstream changes to fix compatibility with current
libtre (Closes: #560575, #566860)
2009-09-02 - Sergei Golovan <>
msort (8.52-1.1) unstable; urgency=low
* Non-maintainer upload.
* Switched to Tcl/Tk 8.5 to match changes in itcl3 and itk3 packages.
2009-02-02 - Bartosz Fenski <>
msort (8.52-1) unstable; urgency=low
* New upstream version. 
2008-04-23 - Bartosz Fenski <>
msort (8.44-1) unstable; urgency=low
* New upstream version.
* Bumped Standards-Version to 3.7.3 (no changes needed).
* Moved URL to homepage header.
* Rewritten debian/copyright to make lintian happy.
* Adapted menu entry to new policy.
* Doesn't ignore clean target anymore.

See Also

Package Description
msp430-libc_20120224-1ubuntu1_amd64.deb Standard C library for TI MSP430 development
msp430mcu_20120406-2_all.deb Spec files, headers and linker scripts for TI's MSP430 targets
mspdebug_0.22-2build2_amd64.deb debugging tool for MSP430 microcontrollers
msrtool_20141027-1.1ubuntu1_amd64.deb Dump chipset-specific MSR contents
mssh_2.2-5_amd64.deb tool to administrate multiple servers at once
mstflint_4.11.0+1-1_amd64.deb Mellanox firmware burning application and diagnostics tools
msva-perl_0.9.2-1ubuntu2_all.deb Cryptographic identity validation agent (Perl implementation)
mswatch_1.2.0-2.2_amd64.deb watch mailstores for changes and initiate mailbox syncs - client tools
msxpertsuite-massxpert-data-doc_5.8.6-2_all.deb mass spectrometry software suite - massXpert - data and doc
msxpertsuite-massxpert_5.8.6-2_amd64.deb mass spectrometry software suite - massXpert
msxpertsuite-minexpert-data-doc_5.8.6-2_all.deb mass spectrometry software suite - mineXpert - data and doc
msxpertsuite-minexpert_5.8.6-2_amd64.deb mass spectrometry software suite - mineXpert
msxpertsuite_5.8.6-2_amd64.deb mass spectrometry software suite - metapackage
mt-st_1.3-2_amd64.deb Linux SCSI tape driver aware magnetic tape control (aka mt)
mtail_3.0.0~rc16-1ubuntu1_amd64.deb Extract monitoring data from logs for collection in a timeseries database