add possibility to sort records in hasMany association