fix building sort bug

Signed-off-by: Alexandr <xescoder@gmail.com>