sorting working
merged js at the end