Fix regression test and sort order for identical selectors (#14)