sort bug fixed and linux header added