If you add any custom category attribute into any default Category Group or any Custom Group using ui_component its working good, but sorting order is mess up.
default general tab comes after on which tab you have added attribute see below screenshot. i have added custom category attribute into content tab so default general tab comes after this.
Thanks