Implement table sorting, add property validation