Row sorting support. Closes #3.