Removed unneccessary stact sort when enabling UI forms.