1. A method that uses a processor for processing N sort queries in multi-range scan, comprising: allocating a buffer based on a first number of extracted records included in the queries; extracting, using the processor, first data related to first attributes in a first list included in the queries and storing the extracted first data in the buffer; extracting, using the processor, second data related to the first attributes that are not extracted in the first list included in the queries; and updating the buffer so as to satisfy the queries by comparing the data stored in the buffer with the second data, wherein the queries are N sort queries in a multi-range scan for at least one record sorted based on the first attributes and second attributes.