Found in: /secure/obj/shell/history.c

returns the history buffer in order of least to most recent items
