sort descriptor comparison according to medians