Creating two new lists in order to later sort.