order by index

Signed-off-by: Jan Van der Taelen <janvandertaelen@gmail.com>