Fix results ordering on broker

fixes #862