Fixing the order of the elements