I see. Thanks again! I removed the "port" data type from my implementation and just used the ORDER BY... USING clause and the explain output/results is providing what I expect.
Steven
That is an editing mistake. I mean
> hasegeli=# SELECT port FROM device_port ORDER BY cast_to_port(port);