Sample order corrected. Fixes #42.