add order to notes query
upgrade ruby version