Started laying down Sortsql query

About to make a model change