Github Sort By Sql Statement Distinct