modify AWSResourceFactory class to return sorted list of the objects in
some methods.