Ordering is now done from last to first and closes #202

closes #202