ActiveDataProvider sort by an attribute's associated tuple value

I have a numeric attribute ‘status’, stored in a DB, and displayed in a gridview using activedataprovider with an associated string value. I want to sort the gridview by this attribute but by the associated string value, not the numeric value itself. These associations are stored as a constant on the model


public $arrayStatuses = [

	0 => active,

	1 => pending,

	2 => cancelled,

	3 => expired


I can’t see how I can set the Sort object to sort for this.