Add sorting to water rights table