Add basic sorting to value selectors.