initalize the sort