Fixed console.log on sort