[SPARK-1337] Garbage collect the oldest stages in the ui instead of the newest.