Sort devices strictly before the individual streams

These should be more-or-less persistent, so makes sense to keep them
in fixed spot.