fixed issue with reading values from EditText items and added ordering to query