Organization wise it may looks like both Layers and Pipe and Filters patters are similar (One component taking input and passing result to another) but functionally they are not. They are Architectural Patterns.
If we go by definition:
Pipes and Filters pattern divide a larger processing task into a sequence of smaller, independent processing steps (Filters) that are connected by channels (Pipes).
While in Layer Pattern, each layer communicates with the adjacent layers and is responsible for some processing of its own, passing requests to the layer below it and answering requests from the layer above it.
Comparison:
The pipe and filter pattern allows a system to be assembled from small programs called filters whereas a Layered system is one in which different layers of the system take care of a specific function of the system.
A filter has an input and an output whereas each layer in a layered architectural style is a package of software (or systems) that has a well-defined interface and a few well-known dependencies within the application.
The filters are assembled into a chain in which each filter gets data from the previous filter in the chain, processes the data, and passes the data to the next filter in the chain whereas in Layered systems dataflow can be bidirectional such that all requests of layer above are fulfilled with or without help of layers below it.
Order may not matter. e.g. you can Authenticate a message and then filter the contents of the message, or you can filter contents first then do authentication whereas in Layered system order is always same and cannot be interchanged.
Hope this helps.