Fixed sort in data.py when retrieving volumes from db