added prepend mode for ordering. replaces now deprecated reverse mode