Sort order consistent and starting from 0

This fixes a bug while sorting. 
The Admin UI sorts the elements from index 0. Currently, if you update the first item in the list, its `sortOrder` is changed to the max + 1 because of `sortOrder` being 0.