added sorting to array controller guide