sort is kinda working, it wasnt that hard after all