ListView: fix reverse order bug when list contains two items

This PR resolves the reverse order issue when there is only two items.