rewrote code for upgrading resos in a portal

resos were not upgraded in the right order from low to high