RF - use numpy sorting in local_maximum