Added test for bug #74.
Merge branch 'sort_bug_74' into devel