fixed incorrect sorting in Segments view