Three Sort Framework