Hi @DataPalla
Welcome to the Quick Sight community!
Quick Sight currently limits sorting for Color/Group fields in stacked and clustered bar visuals to alphabetical or manual legend re-ordering, which can be restrictive for dynamic, measure-based segment ordering needs.
One workaround is to create a calculated field that ranks the segments based on the measure, and then concatenate this rank to the dimension label. Refer this community post.
I will mark this as a feature request to promote visibility to the support team.