shortest_cmp