A method and system to provide a command queue re-ordering method that can make
the power save and reduction in acoustic noise. The command queue re-ordering method
involves calculating the value of an evaluation function, Ev=AT+(1-A)Fun(L)
(A is any number from 0 to 1, T is a latency required to execute a write command
and/or read command, and Fun(L) is an evaluation function with a seek distance
L) for the write command and/or read command, and selecting the write command and/or
read command having the minimum value as a next command to be execute.