Read what it says: "SortOrder.Custom is deprecated, please use LayoutOrder instead". It's saying that the method you are using (SortOrder.Custom) is deprecated (old, not working, no longer used, replaced by a better method) and that you should use the newer method (LayoutOrder) instead.
Click here to learn more about LayourOrder
Accept if this helped thx