Added option to reverse order of items.