Debugging sorting; package problem