Editing custom fields and sortings them