woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
321 stars 113 forks source link

[Custom Fields] Sort custom fields using their IDs to avoid non-deterministic ordering. #14293

Open hichamboushaba opened 3 weeks ago

hichamboushaba commented 3 weeks ago

Currently, custom fields are stored as a Set, which means that there is no guarantee for their order when we fetch them from storage, and this leads to cases where the custom fields jumps around after saving changes, like in this video:

https://github.com/user-attachments/assets/13292455-5a29-47d5-b5fb-c463dc9ada72

dangermattic commented 3 weeks ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.