changing key value pair to first in no sql page