Revert "Link to libcommon.la in sort"

CFLAGS for lib and tools are different, so we cannot link sort to
libcommon.la.

This reverts commit 5c216ecfea9db455cc2969597c1a210e16a47312.