Added complete support for single-dimensional sorts.