refining sort algorthim and making showcase