edit sort in building model

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