cleanup: removed orderByTime fcts.
removed Foldl dependency.