Changed emulator slightly which has influence on intermediate sorting.
Fixed sorting of intermediates.