added sorting in measurements table