Fixed show order calculation