Changes in getTraningDataByCrisisAndAttribute method - add sorting parameters. Small optimization of this method.