added sorting in csv load