Fixed a bug where the wrong slides were being sorted

Gh-211