fix js sort function
remove console