Added TestSortMatches

Doesn't work yet.