added support for named columns
added support for sorting