formatted train data working

trains_helper.rb for train sorting and arrival estimate formatting.