Changed query order in real time stats