solved sorting

Fixed alot of problems by not sorting by first row aswell