Better sorting for fan-in/out & removed swap

- States for the fan-in/out overviews are now sorted by their id,
  fixing the problem that `Collections.sort()` uses total ordering.
- Also removed diff swap function. Not very useful and can lead to
  confusing diffs when going to other states after swapping.