The basic character of MgO, SrO, K2O and NiO increases in the order:
K2O < SrO < MgO < NiO
NiO < MgO < SrO < K2O
MgO < NiO < SrO < K2O
K2O < MgO < NiO < SrO
More the metallic character, more is the basic nature of oxide.
The basic character of oxides MgO, SrO, K2O, NiO, Cs2O increase in the order