(Reuters) - A rival Libyan parliament based in the capital Tripoli has ordered the withdrawal of troops loyal to it from frontlines near Libya's biggest oil ports, a senior lawmaker said on Saturday.

The move raised hopes of a reopening of the ports of Es Sider and Ras Lanuf, which closed in December when fighting broke out between forces loyal respectively to Libya's competing governments and parliaments.

(Reporting by Ahmed Elumami; writing by Ulf Laessing; Editing by Kevin Liffey)