[LMP Graffiti] Add sorting to dir list, fixes #1517.