added sorting client