Update sort-by-another.c

tested