* They refers to 'history books.'

1. They are on the 2nd floor in Section D.

2. They are in Section D on the 2nd floor.

(Are both the same? According to the word order rule, which one is right?)

Both are the same, and both are correct.