Please clear my doubt!
Which one is more correct order? Is there any different meaning in between the two sentences?

1. It had hardly been raining when the hurricane hit the house.

2.Hardly had it been raining when the hurricane hit the house.