...make sure that macro security is not set to high (tools>macro>security)
start the macro recorder it will default to macro1 for a name...
go through the steps of sorting your data.
stop the macro recorder
press alt+F11 to view the macro editor and the code that it just created,
copy the text between the "Sub macro1 ()" and "End Sub" lines.
then dbl click in the sheets' name ("sheet?"

in the left "vba project window", and in the right window, click the left drop down to select "worksheet" then the right drop down to select the "change" event...
...you will see an empty sub created that looks like this.
Private Sub Worksheet_Change(ByVal Target As Range)
'paste your text here
End Sub
....alt+F11 to return to the sheet.
Now when the value of any cell changes...the sheet will run the sort