Assign New PO Line and Release No while Generate PO in New PO Suggestion

I would like to further know about:

What is the logic on assign a New PO Line and Release No when Generate PO in New PO Suggestion?

As far i knew is based on Part Num ascending. Any other logic behind?

Thanks