ordered data frame finally works