fix makefile for sorting