Added sorting to the common variables